const router = [
    {
      title: '控制台',
      icon: 'laptop',
      key: '/index',
      role: ["user", "information", "product"]
    },
    {
      title: '用户管理',
      icon: 'laptop',
      key: '/index/user',
      role: ["information", "user"],
      child: [
        {key: '/index/user/list', title: '用户列表', icon: '', role: ["user"]},
      ]
    },
    {
      title: '部门管理',
      icon: 'bars',
      key: '/index/department',
      role: ["user"],
      child: [
        {key: '/index/department/list', title: '部门列表', icon: '', role: ["user"] },
        {key: '/index/department/add', title: '添加/更新部门', icon: '', role: ["user"] },
      ]
    },
    {
      title: '职位管理',
      icon: 'edit',
      key: '/index/job',
      role: ["user"],
      child: [
        {key: '/index/job/list', title: '职位列表', icon: ''},
        {key: '/index/job/add', title: '添加职位', icon: ''}
      ]
    },
    {
      title: '职员管理',
      icon: 'edit',
      key: '/index/staff',
      child: [
        {key: '/index/staff/list', title: '职员列表', icon: ''},
        {key: '/index/staff/add', title: '添加职员', icon: ''}
      ]
    },
    {
      title: '商品管理',
      icon: 'bars',
      key: '/index/category',
      child: [
        {key: '/index/category/list', title: '商品列表', icon: ''},
        {key: '/index/category/add', title: '品类列表', icon: ''}
      ]
    },
    {
      title: '产品管理',
      icon: 'bars',
      key: '/index/product',
      child: [
        {key: '/index/product/home', title: '产品列表', icon: ''},
        {key: '/index/product/detail', title: '产品列表', icon: ''},
      ]
    },
    {
      title: '角色管理',
      icon: 'bars',
      key: '/index/role',
      child: [
        {key: '/index/role/role', title: '角色列表', icon: ''},
      ]
    },
    {
      title: '请假',
      icon: 'info-circle-o',
      key: '/home/asLeave'
    },
    {
      title: '加班',
      icon: '<UserOutlined />',
      key: '/home/overtime_work'
    }
  ]

  export default router;